import 'package:imperius_insights/portal/env/environments.dart';

import '../portal/channels/web.dart';

final String endpointWeb = 'http://100.80.193.63:3000';
//final String endpointWeb = 'http://127.0.0.1:3000';

final queryPmoInfo = WebCallableTarget(
    host: isWebRuntime ? endpointWeb : 'http://qa.corp.qunar.com',
    relativePath: isWebRuntime ? '/proxy_qodin/qodin/api/easyPmoNoah/getPmoInfo' : '/qodin/api/easyPmoNoah/getPmoInfo');

final queryCaseCount = WebCallableTarget(
    host: isWebRuntime ? endpointWeb : 'https://todolist.qunar.com',
    relativePath: isWebRuntime ? '/proxy_case/case/queryCaseCount.do' : '/case/queryCaseCount.do');

final queryProjectsPlan = WebCallableTarget(
    host: isWebRuntime ? endpointWeb : 'http://qa.corp.qunar.com',
    relativePath: isWebRuntime ? '/proxy_qodin/qodin/api/issue/getPlan' : '/qodin/api/issue/getPlan');

final queryIssuesClassification = WebCallableTarget(
    host: isWebRuntime ? endpointWeb : 'https://findbug.qunar.com',
    relativePath: isWebRuntime ? '/proxy_findbug/statistics/form.do' : '/statistics/form.do');
